package day09;

public class ThreadSetPriority {

	public static void main(String[] args) {

		Thread max = new Thread() {
			public void run() {
				for (int i = 0; i < 1000; i++) {
					System.out.println("max");
				}
			}
		};

		Thread nor=new Thread(){
			public void run(){
				for(int i=0;i<1000;i++){
					System.out.println("nor");
				}
			}
			
		};
		Thread min=new Thread(){
			public void run(){
				for(int i=0;i<1000;i++){
					System.out.println("min");
				}
			}
			
		};
		
		max.setPriority(7);
		min.setPriority(Thread.MIN_PRIORITY);
		max.start();
		nor.start();
		min.start();
		

		
	}

}
